//
//  CourseTestWordListManager.m
//  JPWords
//
//  Created by 梁淑婷 on 2024/7/8.
//

#import "CourseTestWordListManager.h"

@implementation CourseTestWordListManager

-(NSString *)methodName{
    return @"/system/word/test/app/listTestWord";
}


-(JPAPIManagerRequestType)requestType{
    return JPAPIManagerRequestTypeGET;
}


-(NSDictionary *)paramsForApi:(JPAPIBaseManager *)manager{
    NSMutableDictionary *dict = @{}.mutableCopy;
    NSString *userId = [[NSUserDefaults standardUserDefaults]objectForKey:@"userId"];
    dict[@"userId"] = userId;
    dict[@"groupId"] = self.groupId;
    if([self.type isEqualToString:@"2"]){
        //错词传
        dict[@"bookId"] = self.bookId;
    }
    dict[@"type"] = self.type;
    dict[@"page"] = self.page;
    dict[@"limit"] = @"10";
    return dict;
}

@end
